package com.sh.data.engine.domain.base.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author: zigui.zdf @Date: 2022/3/1 14:25:48 @Description:
 */
public interface LogService {

    void write(String filePath, List<String> lines);

    List<String> read(String filePath, int startLine) throws IOException;

    List<String> readWithKeyWord(String filePath, String keyPath) throws IOException;

    /**
     * @description : 读日志，读不到返回null
     * @author : tinglan.ys
     * @date : 2022/3/21
     */
    List<String> readNew(String filePath, int startLine) throws IOException;

    List<Map<String, Object>> readResult(String rsPathDir, int start, int end, List<String> hasShowd)
        throws IOException;

    List<List<String>> readHiveRs(String dirPath, int startLine, String fileName);
}
